﻿<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no, maximum-scale=1.0" />
    <title>消毒提示详细信息</title>
    <link rel="stylesheet" type="text/css" href="css/common.css" />
    <link rel="stylesheet" type="text/css" href="css/index.css" />
    <link rel="stylesheet" type="text/css" href="css/pullToRefresh.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.7/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/file.css" />
    <link href="static/h-ui.admin/css/pageloader.css" rel="stylesheet" />
    <!--[if IE 6]>
    <script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->

    <script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="lib/layer/2.1/layer.js"></script>
    <script type="text/javascript" src="lib/laypage/1.2/laypage.js"></script>
    <script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
    <script type="text/javascript" src="static/h-ui/js/H-ui.js"></script>
    <script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script>
    <script src="static/usi/core.js"></script>
    <script src="static/usi/tools.js"></script>
</head>

<body>
    <div class="container detail">
       	  <h4 id="title"></h4>
       	  <time id="time">
		  </time>
       <article id="content">
       </article>
    </div>
</body>
</html>
<script>
     window.onload = function () {
         var unid = jQuery.usi.core.getURLParam("Unid");
         var enterpriseUnid = jQuery.usi.core.getURLParam("EnterpriseUnid");
         //获取消毒提示详细信息
         jQuery.usi.core.get(ip + api + "/GetConsumerTipsByUnid", { unid: unid }, false, function (data) {
             if (!jQuery.usi.core.isNullOrEmpty(data.data)) {
                 $("#title").html(data.data.title);
                 if (!jQuery.usi.core.isNullOrEmpty(data.data.releaseTime)) {
                     $("#time").html(jQuery.usi.core.formatDate(data.data.releaseTime));
                 } else {
                     $("#time").html("");
                 }
                 $("#content").html(data.data.contentStr);
             } else {
                 layer.alert("未查询到详细信息！");
                 window.location.href = "index.html?Unid=" + enterpriseUnid;
             }
         });
     }
</script>

